package com.fr.data;

import com.fr.base.xml.XMLPrintWriter;
import com.fr.base.xml.XMLableReader;
import com.fr.report.script.Calculator;

public class DMLConfigJob
  implements SubmitJob
{
  private DBManipulation dbMani;

  public DBManipulation getDBManipulation()
  {
    return this.dbMani;
  }

  public void setDBManipulation(DBManipulation paramDBManipulation)
  {
    this.dbMani = paramDBManipulation;
  }

  public void doJob(Calculator paramCalculator)
    throws Exception
  {
    getDBManipulation().commit2db(paramCalculator);
  }

  public void readXML(XMLableReader paramXMLableReader)
  {
    DBManipulation localDBManipulation = new DBManipulation();
    paramXMLableReader.readXMLObject(localDBManipulation);
    setDBManipulation(localDBManipulation);
  }

  public void writeXML(XMLPrintWriter paramXMLPrintWriter)
  {
    if (getDBManipulation() == null)
      return;
    getDBManipulation().writeXML(paramXMLPrintWriter);
  }

  public Object clone()
    throws CloneNotSupportedException
  {
    return super.clone();
  }
}